<?php 
namespace app\index\controller;

use app\index\model\User;
use think\Controller;
use think\Request;

header("content-type:text/html;charset=utf-8");
class Login extends Controller
{
	public function login()
	{
		$Request = Request::instance();
		$data = $Request->post();
		// var_dump($data);die;


		// var_dump($username);die;
		if($data)
		{
			$model = new User;
			$sql = $model->find();
			var_dump($sql);die;

			// var_dump($uname);die;
			

		}
		else
		{
			echo 2;
		}
		return view();
	}
}